<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for(n=100;n<=999;n++){
            var o=parseInt(n/100);
            var p=parseInt(n/10%10);
            var q=parseInt(n%10);
            if((o**3+p**3+q**3)==n){
                console.log(n);
            }
        }
    </script>
</body>
</html>